package lab02.test11;
import  java.util.Scanner;
public class Test11 {

   public static void main(String[] args) {

             rectangle c1 = new rectangle();

       square c2=new square();

        Scanner sc=new Scanner(System.in);

             System.out.println("请输入矩形的边长");

             c1.l1=sc.nextInt();

              c1.l2=sc.nextInt();

            c1.printMyWay();

                System.out.println("请输入正方形边长");

               c2.l1=sc.nextInt();

              c2.l2=c2.l1;

             c2.printMyWay();

               }

  }